package com.yolo.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("vw_errand_dto")
public class ErrandDto implements Serializable {

    @TableId("errand_id")
    private Integer errandId;    //出差编号
    //@DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("errand_time")
    @JsonFormat(pattern = "yyyy年MM月dd日", timezone = "GMT+8")
    private LocalDateTime errandTime;    //出差时间
    @TableField("name")
    private String name;//员工名
    @TableField("errand_day")
    private Integer errandDay;    //出差天数
    @TableField("errand_place")
    private String errandPlace;    //出差地点
    @TableField("errand_subsidy")
    private double errandSubsidy;    //每日补贴
    @TableField("emp_id")
    private Integer empId;//员工编号
}
